package com.ns.school.service.edu.impl;

import com.ns.school.po.edu.CourseTypeDB;
import com.ns.school.po.edu.MajorDB;
import com.ns.school.po.edu.Coursel;
import com.ns.school.mapper.edu.CourseMapper;
import com.ns.school.service.edu.CourselService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CourselServiceImpl implements CourselService {
    @Autowired
    private CourseMapper courseMapper;

    @Override
    public List<Coursel> selCourse(Coursel coursel) {
        return courseMapper.selCourse(coursel);
    }

    @Override
    public List<MajorDB> selJson() {
        return courseMapper.selJson();
    }

    @Override
    public List<CourseTypeDB> selCoutu() {
        return courseMapper.selCoutu();
    }

    @Override
    public int update(Coursel coursel) {
        return courseMapper.update(coursel);
    }

    @Override
    public int addcou(Coursel coursel) {
        return courseMapper.addcou(coursel);
    }

    @Override
    public int delcou(Integer cid) {
        return courseMapper.delcou(cid);
    }

    @Override
    public int hfcou(Integer cid) {
        return courseMapper.hfcou(cid);
    }

    @Override
    public int delercou(Integer cid) {
        return courseMapper.delercou(cid);
    }
}
